<?php

class Admin_FragController extends Fengqiaoju_Controller_Action {

	public function init() {

		parent::init ();
		
		if ($this->userObject->getUserId () > 4 || ! $this->userObject->getUserId ()) {
			$this->message ( '无权操作' );
		}
		$this->view->id = $this->_request->getParam ( 'id' );
	
	}

	/**
	 * 首页
	 */
	public function indexAction() {

		$fragObject = new Admin_Models_Frag ();
		$where = '';
		$this->view->fragList = $fragObject->fetchAll ( $where );
	}

}

